/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Account;

/**
 *
 * @author suzunghia
 */
public class Account {

    private String user;
    private String pass;

    /**
     * @return the user
     */
    public String getUser() {
        return user;
    }

    /**
     * @param user the user to set
     */
    public void setUser(String user) {
        this.user = user;
    }

    /**
     * @return the pass
     */
    public String getPass() {
        return pass;
    }

    /**
     * @param pass the pass to set
     */
    public void setPass(String pass) {
        this.pass = pass;
    }

    public boolean isAccount(String iUser, String iPass) {
        if (this.pass.equals(iPass) && this.user.equals(iUser)) {
            return true;
        }
        return false;
    }
    public Account(String iUser, String iPass)
    {
        this.user = iUser;
        this.pass = iPass;
    }
}
